<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:0.2rem;color:#19b955}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.delete{color: #bebebe;text-decoration:line-through;font-size:0.55rem}
</style>
<div class="fui-page fui-page-current" ng-if="pagedata.op == 'list'">
	<div class="fui-content">
		<div class="fui-cell-group fui-cell-click" style="margin-top:0">
				<div class="fui-cell">
					<div class="fui-cell-info">
						<div class="fui-cell-info text bold" style="font-size:1.2rem;color:#333">果树</div>
					</div>
				</div>
		</div>
		<div class="fui-tab-scroll" style="height:2rem">
			<div class='xcontainer'>
				<span ng-repeat="item in pagedata.groups" ng-class="{'item':1, 'on':pagedata.params.id == item.id}" href="javascript:" ng-click="pagedata.params.id=item.id;tool.get_list('jy_farmer/gclassify/animal_list/',true)">{{item.title}}</span>
			</div>
		</div>
		<div class="jy-content">
		<div ng-repeat="item in pagedata.list" class="fui-picturew row-1 radius" style="background:#fff;">
				<a class="item" style="padding: 5px;" href="javascript:;" href="javascript:" ng-click="access_json('jy_farmer/gclassify/detail/id='+item.id)">
					<div class="image">
						<img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
					</div>
					<div class="title bold">{{item.title}}</div>
					<div class="subtitle center">简介：{{item.remark}}</div>
					<div class="subtitle center">周期：{{item.growtime}}天 | 剩余数量：{{item.kucun ||0}}棵</div>
					<div class="subtitle center">预计回报：{{item.shoukg}}KG / {{item.shoufee ||0}}元</div>
					<div class="subtitle center">截至时间：{{item.endtime}}</div>
					<div style="font-size:0.8rem"><span style="color:#00c568">￥{{item.price || 0.00}}元起</span><span class="label label-danger r-f" style="background:#00c568;padding:0.3rem 0.5rem" href="javascript:;" ng-click="access_json('jy_farmer/gclassify/detail/id='+item.id)">认领</span></div>
				</a>
		</div>
		<div ng-if="pagedata.list.length<=0" class="content-empty">
			<i class='icon icon-chakanpingjia'></i>
			<div>暂无任何果树</div>
		</div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
	<div ng-include="sys_html('_footer')"></div>
</div>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'detail'">
	<div class="fui-content">
		<div class="fui-picture">
				<a style="display: block; padding: {paddingtop}px {paddingleft}px;" data-nocache="true">
					<img ng-src="{{tomedia(pagedata.item.image) || '../core/resource/images/nopic.jpg'}}">
				</a>
		</div>
		<div class="jy-content">
		<div class="fui-cell-group fui-cell-click" style="padding-bottom:0.3rem">
			<div class="fui-cell sm">
				<a class="fui-cell-text bold">{{pagedata.item.title}}</a>
			</div>
			<div class="fui-cell sm">
				<div class="fui-cell-text">
				<div class="gray center">价格：￥{{pagedata.item.price}}/棵 | 剩余数量：{{pagedata.item.kucun || 0}}棵 </div>
				<div class="subtitle center">生长周期：{{pagedata.item.growtime}}天</div>
				<div class="gray center">预计回报：{{pagedata.item.shoukg}}KG / {{pagedata.item.shoufee ||0}}元</div>
				<div class="gray center">截至时间：{{pagedata.item.endtime}}</div>
				</div>
			</div>
		</div>
		<div class="fui-cell-group fui-cell-click">
			<div class="fui-cell sm">
				<a class="fui-cell-text bold">认领规则</a>
			</div>
			<div class="gray content-block content-images" style="font-size:0.6rem;padding:0.4rem" ng-bind-html="trust(pagedata.item.guize)"></div>
		</div>
		<div class="fui-cell-group">
			<div class="fui-cell sm">
				<a class="fui-cell-text bold">认领详情</a>
			</div>
			<div class="gray content-block content-images" style="font-size:0.6rem;padding:0.4rem" ng-bind-html="trust(pagedata.item.content)"></div>
		</div>
		</div>
	</div>
	<div class="fui-navbar">
		<a class="nav-item favorite-item"><div class='subtitle l' style="font-size:0.7rem;padding-bottom:0.15rem;margin-left:0.3rem">费用:<span class="bigprice" style="font-weight:600"> ￥</span><span class='totalprice bigprice' style="font-weight:600;">{{pagedata.item.price}}</span></div></a>
		<a href="javascript:;" ng-click="access_json('/buyguoshu//id='+pagedata.item.id)" class="nav-item" style="background:#00c568;color:#fff">立即购买</a>
	</div>
</div>
<script>
scope.loading = true;  //状态标记
scope.isnodata = false;
scope.pagedata.list =[];
//滚动加载
if(scope.pagedata.op=='list'){
	scope.tool.get_list('jy_farmer/gclassify/animal_list/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_farmer/gclassify/animal_list/');
	}
}
scope.pagedata.areaid = 0;
scope.pagedata.post.area = 6;
scope.pagedata.selectarea=function(area){
	scope.pagedata.totalprice = area * scope.pagedata.item.price;
}
</script>